//
//  InvoiceStatisticListCell.m
//  NtoccShipper
//
//  Created by mac on 2019/12/27.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "InvoiceStatisticListCell.h"

@interface InvoiceStatisticListCell()
@property (nonatomic,strong) CJLabel *labInvoiceNum;
@property (nonatomic,strong) CJLabel *labStatue;
@property (nonatomic,strong) CJLabel *labName;
@property (nonatomic,strong) CJLabel *labPhone;
@property (nonatomic,strong) CJLabel *labTime;
@property (nonatomic,strong) CJLabel *labMoney;
@property (nonatomic,strong) CJLabel *labHeader;
@property (nonatomic,strong) CJImageView *imgV;
@end

@implementation InvoiceStatisticListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithModel:(InvoiceStatisticListModel *)model{
    
//    self.labInvoiceNum.textColor = [UIColor cjRedColor];
//    [CJUtil getUIImageVCutAllCornRound:self.imgV height:17.5];
    if ([CJRegular getIsStrEmpty:model.invoiceNumber]) {
        self.labInvoiceNum.text = @"";
    }else{
        self.labInvoiceNum.text = model.invoiceNumber;
    }
    self.labStatue.text = model.invoiceStatusName;
    
    self.labName.text = model.receiverName;
    self.labPhone.text = model.receiverPhone;
    self.labTime.text = CJStringWithFormat(@"申请时间:%@",model.gmtCreated);
    self.labMoney.text = CJStringWithFormat(@"开票金额:%@",@(model.invoiceAmount).cj_money_description);
    self.labHeader.text = model.invoiceTitle;
//    [self.imgV sd_setImageWithURL:[NSURL URLWithString:[CJControl getThreeUnaryValueStr:model.invoiceImg]] placeholderImage:[UIImage imageNamed:@"zcj_default_person_icon"]];
//    self.imgV.image = [UIImage imageNamed:@"zcj_default_person_icon"];
}

@end
